import request from '@/utils/request'

//查询上机考试
export function findPageList(data) {
    return request({
      url: '/academic/cls/practice/info/findPageList',
      method: 'post',
      data: data
    })
}

//新增或更新上机考试
export function createOrUpdate(data) {
    return request({
      url: '/academic/cls/practice/info/createOrUpdate',
      method: 'post',
      data: data
    })
}

//根据上机考试表id查询上机考试记录表
export function findListByClsPracticeByInfoId(infoId) {
    return request({
      url: '/academic/cls/practice/result/findListByClsPracticeByInfoId/' + infoId,
      method: 'get',
    })
}

//录入上机结果
export function enterClsPracticeResult(data) {
  return request({
    url: '/academic/cls/practice/result/enterClsPracticeResult',
    method: 'post',
    data: data
  })
}

//导出单条数据
export function exportSingleClsPractice(infoId){
  return request({
    url: '/academic/cls/practice/info/exportSingleClsPractice/' + infoId,
    method: 'get',
    responseType:'blob',
  })
}

//导出多条数据
export function exportMultipleClsPractice(data){
  return request({
    url: '/academic/cls/practice/info/exportMultipleClsPractice',
    method: 'post',
    responseType:'blob',
    data:data
  })
}